#include <stdio.h>
void main()
{
 int t = 0;
 float T = 0;
 scanf("%d",&t);
 T = 9/5*t+32;
 printf("%f\n",T);
 
}